<template>
  <div>
    <div class="title">
      <van-nav-bar
        @click-left="$router.back(-1)"
        style="width: 100%"
        title="领养中心"
        left-text="返回"
        left-arrow
      >
      </van-nav-bar>
    </div>
    <van-swipe class="my-swipe" :autoplay="3000" indicator-color="white">
      <van-swipe-item
        ><img src="../../public/src/1.webp" alt=""
      /></van-swipe-item>
      <van-swipe-item
        ><img src="../../public/src/1.webp" alt=""
      /></van-swipe-item>
      <van-swipe-item
        ><img src="../../public/src/1.webp" alt=""
      /></van-swipe-item>
      <van-swipe-item
        ><img src="../../public/src/1.webp" alt=""
      /></van-swipe-item>
    </van-swipe>
    <div class="row1">
      <van-grid :border="false" :column-num="4">
        <van-grid-item @click="$router.push('baoxian')">
          <van-image
            src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.ntimg.cn%2Ffile%2F20150911%2F8186379_105044519000_2.jpg&refer=http%3A%2F%2Fpic.ntimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668689127&t=3c5140e09e2a4d6d865d5354612cc8e6"
          />
          <span>宠物保险</span>
        </van-grid-item>
        <van-grid-item @click="$router.push('cwxz')">
          <van-image
            src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.ntimg.cn%2Ffile%2F20150911%2F8186379_105044519000_2.jpg&refer=http%3A%2F%2Fpic.ntimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668689127&t=3c5140e09e2a4d6d865d5354612cc8e6"
          />
          <span>宠物洗澡</span> </van-grid-item
        ><van-grid-item @click="$router.push('cwmr')">
          <van-image
            src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.ntimg.cn%2Ffile%2F20150911%2F8186379_105044519000_2.jpg&refer=http%3A%2F%2Fpic.ntimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668689127&t=3c5140e09e2a4d6d865d5354612cc8e6"
          />
          <span>宠物美容</span> </van-grid-item
        ><van-grid-item @click="$router.push('cwym')">
          <van-image
            src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fpic.ntimg.cn%2Ffile%2F20150911%2F8186379_105044519000_2.jpg&refer=http%3A%2F%2Fpic.ntimg.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=auto?sec=1668689127&t=3c5140e09e2a4d6d865d5354612cc8e6"
          />
          <span>宠物疫苗</span>
        </van-grid-item>
      </van-grid>
    </div>
    <div class="row2">领养机构</div>
    <div class="row3">
      <div>
        <img src="../assets/img/cat.png" alt="" />
        <p>千库宠物机构</p>
        <p>千库大道66号</p>
      </div>
      <div>
        <img src="../assets/img/cat.png" alt="" />
        <p>千库宠物机构</p>
        <p>千库大道66号</p>
      </div>
      <div>
        <img src="../assets/img/cat.png" alt="" />
        <p>千库宠物机构</p>
        <p>千库大道66号</p>
      </div>
    </div>
    <div class="row4">寄养中心</div>
    <div class="row5">
      <div>
        <span><img src="../assets/img/person.png" alt="" /></span>
        <span>个人</span>
      </div>
      <div>
        <span><img src="../assets/img/organization.png" alt="" /></span>
        <span>机构</span>
      </div>
    </div>
  </div>
</template>

<script>
export default {};
</script>

<style lang="scss" scoped>
.title {
  font-size: 30px;
  display: flex;
  justify-content: space-between;
  font-weight: 545;
}
.my-swipe .van-swipe-item img {
  margin-top: 15px;
  width: 100%;
  border-radius: 10px;
}
.van-grid .van-image {
  width: 30px;
}
.row1 {
  padding: 10px 3px;
  font-size: 15px;
}
::v-deep .van-grid-item__content--center {
  background-color: rgba(0, 0, 0, 0);
}
.row2 {
  font-size: 22px;
}
.row3 {
  display: flex;
  justify-content: space-around;
  margin-top: 15px;
}
.row3 div :nth-child(2) {
  font-size: 15px;
}
.row3 div :last-child {
  font-size: 12px;
  font-weight: 300;
}

.row3 div {
  background-color: #fff;
  width: 100px;
  height: 100px;
  text-align: center;
  border-radius: 15px;
  position: relative;
  line-height: 20px;
  img {
    width: 50px;
  }
}
.row4 {
  font-size: 22px;
  margin: 15px 0px;
}
.row5 {
  display: flex;
  justify-content: space-evenly;
  img {
    width: 40px;
  }
  div {
    margin: 10px;
    width: 150px;
    background-color: #ef858f;
    border-radius: 10px;
  }
  span:nth-child(1) {
    position: relative;
    left: 25px;
  }
  span:nth-child(2) {
    position: relative;
    left: 25px;
    font-size: 22px;
    color: white;
    top: -10px;
  }
}
</style>
